<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class MiyouDaily extends Model
{
    protected $table = 'miyou_daily';


    public $timestamps = false;

    protected $fillable = ['miyou_id', 'calc_date', 'achievement'];


    public static function getByMobile($mobile){
        return self::query()->where("mobile", $mobile)->first();
    }

    public static function getByToken($token){
        return self::query()->where("token", $token)->first();
    }

}
